package com.hj.saapp.control.adapter;

import android.content.Context;
import android.graphics.Color;


import com.hj.saapp.R;

import java.util.List;

/**
 * Created by Administrator on 2015/10/16.
 */
public class ListHorizontalDialogAdapter extends CommonAdapter<String>{


    public  String name;

    public ListHorizontalDialogAdapter(Context context, List<String> datas) {
        super(context, datas, R.layout.view_list_horizontal_dialog_adapter_item);
    }

    @Override
    public void convert(ViewHolder holder, String s) {

        holder.setText(R.id.comment,s);
        if (s.equals(name))
        {
            holder.setTextColor(R.id.comment, Color.parseColor("#333333"));
        }
        else
        {
            holder.setTextColor(R.id.comment, Color.parseColor("#888888"));
        }
    }
}
